package com.ctalk.wxapi.controller;

import com.ctalk.base.domain.Banners;
import com.ctalk.base.service.IBannersService;
import com.ctalk.common.core.domain.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * 微信小程序获取轮播图接口
 *
 * @author 王欢
 * @date 2025-08-04
 */
@RestController
@RequestMapping("/wxapi")
public class WxBannerController {

    @Autowired
    IBannersService bannersService;
    @GetMapping("/loadBaneer")
    public AjaxResult loadBaneer(Banners banners){
        //List<Banners> bannerslist = bannersService.selectBannersList(banners);
        List<Banners> bannerslist = bannersService.selectBannersStatusList(banners);
        return AjaxResult.success(bannerslist);
    }
}
